package com.ruoyi.rsikManage.mapper;

import com.ruoyi.rsikManage.domain.VideoResourceTreeNode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VideoResourceTreeMapper {

    List<VideoResourceTreeNode> selectTreeByTreeType(String treeType);
    List<VideoResourceTreeNode>  selectAllTreeRoot();

    VideoResourceTreeNode selectTreeNodeById(Integer nodeId);
    VideoResourceTreeNode checkTreeNodeNameUnique(@Param("nodeName") String nodeName, @Param("parentId") Integer parentId);
    int insertTreeNode(VideoResourceTreeNode treeNode);

    int updateTreeNode(VideoResourceTreeNode treeNode);
    List<String> selectAllTreeType();
    int deleteTreeNodeByNodeId(Integer nodeId);

}
